package com.wei.czz.framework.annex.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wei.czz.framework.annex.entity.AnnexPreEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-01-18 15:42:18
 * className: AnnexPreDao
 * version: 1.0
 * description:
 */
public interface AnnexPreDao extends BaseMapper<AnnexPreEntity> {

    /**
     * 查询前置主键
     * @param classify     分类
     * @param deleteStatus 删除状态
     * @return 前置主键集合
     */
    Set<Long> selectId(@Param("classify") Integer classify, @Param("deleteStatus") Integer deleteStatus);

    /**
     * 查询最大版本号
     * @param classify     分类
     * @param deleteStatus 删除状态
     * @return 最大版本号
     */
    Integer selectMaxVersion(@Param("classify") Integer classify, @Param("deleteStatus") Integer deleteStatus);
}
